Skip to content

Conversation

petk
Copy link
Member

@petk petk commented Jun 28, 2018

On systems such as Alpine, Musl libc doesn't provide function attributes. Compiler (GCC) provides them, but the runtime afterwards doesn't. This additional check fixes bug #76392.

@nikic
Copy link
Member

nikic commented Jun 29, 2018

@remicollet Can you review this?

@nikic
Copy link
Member

nikic commented Jun 29, 2018

Looking at https://patchwork.ozlabs.org/patch/774679/ we might want to exclude uclibc and android as well.

On systems without glibc, such as Alpine with Musl libc, the function attributes
are not supported. GCC 6 doesn't properly omit some systems. This is
already fixed in GCC 7 but for systems with GCC 6 and ones without
glibc, this additional check fixes this bug.
@petk
Copy link
Member Author

petk commented Jul 3, 2018

Also added uclibc and android systems with similar check as GCC 7 has it:

Case is that on GCC 7 it will already work ok, but for GCC 6 won't for musl based systems:

So, adding android and uclibc, shouldn't cause issues in this patch.

@nikic
Copy link
Member

nikic commented Jul 7, 2018

Merged as 67352cb, thanks!

@nikic nikic closed this Jul 7, 2018
@petk petk deleted the patch-76392 branch July 7, 2018 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants